package com.wxxymaker.edu.model.entity;

import io.github.biezhi.anima.Model;
import io.github.biezhi.anima.annotation.Column;
import io.github.biezhi.anima.annotation.Ignore;
import io.github.biezhi.anima.annotation.Table;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @AUTHOR soft
 * @DATE 2018/9/2 14:21
 * @DESCRIBE 习题答案
 */
@EqualsAndHashCode(callSuper = false)
@Data
@Table(name = "practice_option")
public class PracticeOption extends Model {
    private Integer  id;

    private Integer  practiceId; // 所属习题id
    @Ignore
    private Practice practice;   // 所属习题

    @Column(name = "option_")
    private Integer  option;     // 选项 0-A 1-B 2-C 3-D...

    @Column(name = "right_")
    private Integer  right;      // 是否正确

    private String   result;     // 答案
}
